package homework4;

import java.util.Scanner;

// 在同一个类中,分别定义求两个整数的方法 和 三个小数之和的方法。 并执行代码，求出结果
public class T5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            System.out.println(a + "+" + b + "=" + getSum(a, b));
            System.out.println(a + "+" + b + "+" + c + "=" + getSum(a, b, c));

        }

        sc.close();
    }

    public static int getSum(int a, int b) {
        return a + b;
    }

    public static double getSum(double a, double b, double c) {
        return a + b + c;
    }

}
